import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home'
import Category from '@/components/category/Category'
import Cart from '@/components/cart/Cart'
import Me from '@/components/me/Me'
import Login from '@/components/login/Login'
import Ress from '@/components/me/components/AddressList.vue'
import Edit from '@/components/me/components/AddressEdit.vue'
import Details from '@/components/home/components/Details.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/Category',
      name: 'Category',
      component: Category
    }, {
      path: '/Cart',
      name: 'Cart',
      component: Cart
    },
    {
      path: '/Me',
      name: '/Me',
      component: Me
    },
    {
      path: '/Login',
      name: '/Login',
      component: Login
    },
    {
      path: '/Ress',
      name: '/Ress',
      component: Ress
    },
    {
      path: '/Edit',
      name: '/Edit',
      component: Edit
    },
    {
      path: '/Details',
      name: '/Details',
      component: Details
    }
  ]
})
